package com.explam.springboot.exception;


import lombok.Getter;

///RuntimeException自定义异常
@Getter
public class ServiceException extends RuntimeException{
    /**
     * 错误码
     */
    private String code;

    /**
     * 错误提示
     */
    private String message;


    public ServiceException(String code, String msg){
        this.code = code;
        this.message = msg;
    }
}
